﻿@{
    ViewBag.Title = "Index";
    Layout = "../Shared/_Layout.cshtml";
}

@using mscook.mvc;
@model IEnumerable<mscook.core.domain.LoginUserOfVip>
@Html.Partial("_DeleteModal")
<div>
    <ul class="breadcrumb">
        <li>
            <a href="@Url.Action("index", "Home")">主页</a> <span class="divider">/</span>
        </li>

    </ul>
</div>
<div class="row-fluid sortable">
    <div class="box span12">
        <div class="box-header well" data-original-title="">
            <h2>Vip受理</h2>
            <div class="box-icon">
                <a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
            </div>

        </div>

        <div class="box-content">
            <form class="form-horizontal" method="post" id="searchForm" action="@Url.Action("index")">
                <fieldset>
                    <div>
                        <input type="hidden" id="nowPageNum" name="nowPageNum" value="@ViewData["nowPageNum"]" />
                        <input type="hidden" id="per" name="per" value="@ViewData["per"]" />
                        <span>申请人</span>

                        <input name="userName" type="text" value="@ViewData["userName"]" class="" />
                        <span>Vip</span>

                        <select name="isPassed">
                            @if (ViewData["isPassed"].ToString().ToLower().Equals("true"))
                            {
                                <option value="false">否</option>
                                <option value="true" selected="selected">是</option>
                               
                            }
                            else
                            {
                                <option value="false" selected="selected">否</option>
                                <option value="true">是</option>
                            }
                        </select>

                    </div>

                    <div class="form-actions">
                        <button type="submit" class="btn btn-primary">搜索</button>
                    </div>
                </fieldset>
            </form>
        </div>
        <div class="box-content">
            <table class="table table-striped table-bordered bootstrap-datatable ">
                <thead>
                    <tr>
                        <th>申请人</th>
                        <th>发票编号</th>
                        <th>申请时间</th>
                        <th>是否已受理</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                    @foreach (var LoginUserOfVip in Model)
                    {
                        <tr>
                            <td>@Html.Encode(LoginUserOfVip.LoginUser.LoginName)</td>
                            <td class="center">@Html.Encode(LoginUserOfVip.Numebr)</td>
                            <td class="center">@Html.Encode(LoginUserOfVip.CreateTime)</td>
                            <td class="center">@Html.Encode(LoginUserOfVip.IsPassed ? "是" : "否")</td>
                            <td class="center" data-id="@LoginUserOfVip.Id">

                                <a class="btn btn-info" href="@Url.Action("Edit", new { id = LoginUserOfVip.Id })">
                                    <i class="icon-edit icon-white"></i>
                                    受理                                            
                                </a>
                                <a class="btn btn-danger" href="@Url.Action("Delete", new { id = LoginUserOfVip.Id })">
                                    <i class="icon-trash icon-white"></i>
                                    删除
                                </a>
                            </td>
                        </tr>
                    }

                </tbody>
            </table>
            @Html.Partial("_PageBreak")
        </div>
    </div>
</div>
